﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;



public partial class Admin_Default : System.Web.UI.Page
{
    

    protected void Page_Load(object sender, EventArgs e)
    {        
        Session["AdminUser"] = "wyjgreat";
        
        Response.Redirect("Account.aspx");

        //if (Session["AdminUser"] == null || Session["AdminUser"].ToString() == string.Empty)
        //{
        //    if (Request["Ticket"] == null || Request["Ticket"].Trim() == string.Empty)
        //    {
        //        // 无效的Ticket，跳转到UPM的登陆页进行登陆
        //        PrivilegeServiceHelper.RedirectToUAMLogin(entranceCode);
        //        return;
        //    }

        //    string ticket = Request["Ticket"];

        //    PrivilegeServiceHelper psh = new PrivilegeServiceHelper();
        //    UAMInterface.PrivilegeService.WebMethodReturnDataOfSndaDomainAccountInfo info = psh.Validate(ticket);
        //    if (info.ExecuteStatu != 0)
        //    {
        //        HtmlMeta hm = new HtmlMeta();
        //        hm.HttpEquiv = "refresh";
        //        hm.Content = "3;URL=" + PrivilegeServiceHelper.GetRedirectUAMLoginUrl();
        //        //Header.Controls.Add(hm);

        //        Response.Redirect("Aion_Act_Project_LostUserPrize_Config.aspx");
        //    }
        //    else
        //    {
        //        Session["AdminUser"] = info.Data.DomainAccount;
        //        Response.Redirect("Default.aspx");
        //    }
        //}
    }
}

